package common.serializer.impl;

import api.Message;
import common.serializer.Serializer;
import common.serializer.SerializerFactory;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2020/9/22 13:59
 */
public class JacksonSerializerFactory implements SerializerFactory {
    public static final JacksonSerializerFactory INSTANCE = new JacksonSerializerFactory();


    @Override
    public Serializer create(Class<?> cls) {
        return JacksonSerializer.createParametricType(cls);
    }
}
